package com.bwda.dsrs.filecenter.domain.vo.filedir;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @description: 目录组织树
 * @author: yangjun
 * @create: 2019-05-10 15:07
 */
@Data
public class DirTreeVo {
    private Integer value;
    private Integer key;
    private String title;
    /**
     * 当前文件夹
     */
    @ApiModelProperty(value = "目录id", required = true)
    private Integer id;


    @ApiModelProperty(value = "目录名，文件名")
    private String dirName;

    @ApiModelProperty(value = "0文件1文件夹")
    private Integer dirType;

    @ApiModelProperty(value = "父ID，0为跟目录")
    private Integer parentId;

    @ApiModelProperty(value = "所有父ID，逗号隔开")
    private String parentIds;

    @ApiModelProperty(value = "排序号")
    private Integer seq;

    @ApiModelProperty(value = "用户编码")
    private String userCode;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @ApiModelProperty(value = "0不共享 1共享")
    private Integer shareFlag;

    @ApiModelProperty(value = "0不常用1常用")
    private Integer mostUseFlag;
    /**
     * 子目录及文件
     */
    List<DirTreeVo> children = new ArrayList<>();
}